package com.flow.odr.config;


import lombok.extern.slf4j.Slf4j;
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
  * @author : Mr.Yan
  * @create : 2020/1/4
  * @description : 地址拦截器配置
  */
@Slf4j
public class SecurityInterceptor extends HandlerInterceptorAdapter {

    @Override
    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object object) {
        String url = request.getRequestURL().toString();
        log.info("URL : " + url);
        return true;
    }
}
